package com.liyunc.demo.bundle.file.manager.model.entity;

import com.liyunc.demo.comp.common.db.JpaIdStrategy;
import com.liyunc.demo.comp.entity.base.AuditableEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Table(name = "asset_package")
@Entity
@Getter
@Setter
public class AssetPackage extends AuditableEntity {
    @Id
    @GeneratedValue(generator = JpaIdStrategy.SNOW_FLAKE)
    private Long id;
    private String requestHash;
    private String filepath;
    private Long ownerId;
    private Integer ownerType;
    private String mimeType;
    private String checksum;
    private LocalDateTime lastTimestamp;
    private Integer packStatus;
}
